<template>
  <div class="boa">
    <!-- 商机区域 -->
    <Head title="商机"> </Head>
    <Banner></Banner>
    <!-- 版心区域 -->
    <!-- 商机总区域 -->
    <div class="tp">
      <!-- 商机区域 -->

      <!-- 用户单位文字区域 -->
      <div class="umit">
        <div class="xiao">
          <div class="left"></div>
          <div class="zhong">
            {{ this.$route.query.title }}&nbsp;&nbsp;({{
              this.$route.query.city
            }})
          </div>
        </div>
      </div>
    </div>
    <!-- 中国十大名茶内容区域 -->

    <div class="context" v-if="list && list.length">
      <div class="small" v-for="(item, index) in list" :key="index">
        <!-- 原点区域 -->
        <div class="num">{{ index + 1 }}.</div>
        <!-- 内容区域 -->
        <div class="right">
          {{ item.name }}
        </div>
      </div>
    </div>

    <div v-else class="text-cenetr p-20">暂无数据</div>
  </div>
</template>
  
  <script>
import { getFather } from "@/api/index";
import Head from "@/components/public/HeadPage.vue";
import Banner from "@/components/Home/BannerView.vue";
export default {
  data() {
    return {
      list: [],
    };
  },
  components: {
    Head,
    Banner,
  },
  mounted() {
    getFather({
      top: "top",
      id: this.$route.query.id,
    }).then((res) => {
      if (res.data.code == 200) {
        this.list = res.data.data;
      }
    });
  },
  methods: {
    legal() {
      this.$router.push({ path: "/applet" });
    },
  },
};
</script>
  
  <style scoped>
.boa {
  width: 100%;
  min-height: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0eff5;
}
/* 图标区域 */
.top img {
  width: 0.24rem;
  margin-right: 0.05rem;
}
/* 商机总区域 */
.tp {
  width: 100%;
  background-color: white;
}
h3 {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  font-size: 0.24rem;
  border-bottom: 2px solid #dad9df;
}
h3 img {
  width: 0.28rem;
  margin-right: 0.05rem;
}
/* 用人单位区域 */
.umit {
  width: 100%;
  border-radius: 0.1rem;
  margin-top: 0.04rem;
  background-color: white;
}
.xiao {
  width: 100%;
  margin-top: 0.05rem;
  display: flex;
  align-items: center;
}
/* 左边区域 */
.left {
  width: 0.1rem;
}
.xiao .left img {
  width: 0.1rem;
  height: 0.3rem;
}
/* 中间区域 */
.zhong {
  width: 95%;
  height: 100%;
  line-height: 0.3rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
/* 内容区域 */
.context {
  width: 98%;
}
.context .text {
  width: 100%;
  margin-top: 0.05rem;
}
.icontop {
  display: flex;
}
.small {
  width: 100%;
  height: 0.2rem;
  display: flex;
  margin-top: 0.05rem;
  margin-bottom: 0.07rem;
}
/* 原点区域 */
.num {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0.06rem;
  font-weight: 700;
  padding-top: 0.01rem;
  font-size: 0.18rem;
}

/* 内容区域 */
.right {
  width: 94%;
  height: 100%;
  padding-left: 0.05rem;
  font-weight: 700;
}

/* 左边区域 */
.context .icon {
  width: 5%;
  height: 0.3rem;
  padding-top: 0.03rem;
  font-weight: 700;
}
.icon img {
  width: 0.2rem;
  height: 0.2rem;
}

/* 中间区域 */
.context .tex {
  width: 95%;
  height: 100%;
  line-height: 0.3rem;
  padding-left: 5px;
  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
</style>